package com.eastfair.venueservice.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import lombok.Data;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import com.eastfair.venueservice.enumeration.WorkOrderWorkOrderTypeEnum;
import com.eastfair.venueservice.enumeration.WorkOrderWorkOrderStatusEnum;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 实体类
 * 工单
 * </p>
 *
 * @author linan
 * @since 2022-10-14
 */
@Data
@ApiModel(value = "WorkOrderUpdateDTO", description = "工单")
public class WorkOrderDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    private Long id;

    /**
     * 是否启用（确认状态）：1是 已确认；0否 未确认
     */
    @ApiModelProperty(value = "是否启用（确认状态）：1是 已确认；0否 未确认")
    private Integer isEnabled;
    /**
     * 是否删除：1是；0否
     */
    @ApiModelProperty(value = "是否删除：1是；0否")
    private Integer isDeleted;
    /**
     * 项目id
     */
    @ApiModelProperty(value = "项目id")
    private Long projectId;
    /**
     * 子系统id
     */
    @ApiModelProperty(value = "子系统id")
    private Long subsystemId;
    /**
     * 租户id
     */
    @ApiModelProperty(value = "租户id")
    private Long tenantId;
    /**
     * 订单编号
     */
    @ApiModelProperty(value = "订单编号")
    @Size(max = 255, message = "订单编号长度不能超过255")
    private String orderNumber;
    /**
     * 工单编号
     */
    @ApiModelProperty(value = "工单编号")
    @Size(max = 255, message = "工单编号长度不能超过255")
    private String workOrderNo;
    /**
     * 展会ID
     */
    @ApiModelProperty(value = "展会ID")
    private Long exhibitionManageId;
    /**
     * 工单类型 #{SERVICE:服务工单;REPAIR:报修工单;CHECK:验收工单;WORK_OVERTIME:加班工单}
     */
    @ApiModelProperty(value = "工单类型 #{SERVICE:服务工单;REPAIR:报修工单;CHECK:验收工单;WORK_OVERTIME:加班工单}")
    private WorkOrderWorkOrderTypeEnum workOrderType;
    /**
     * 工单状态 #{DISPATCH:已派单;ACCEPT:已接单;FINISH:已完成;REVOKE:已撤销}
     */
    @ApiModelProperty(value = "工单状态 #{DISPATCH:已派单;ACCEPT:已接单;FINISH:已完成;REVOKE:已撤销}")
    private WorkOrderWorkOrderStatusEnum workOrderStatus;
    /**
     * 工单客户主体id(服务商ID)
     */
    @ApiModelProperty(value = "工单客户主体id(服务商ID)")
    private Long customerSubjectId;
    /**
     * 工单客户主体名称(企业名称)
     */
    @ApiModelProperty(value = "工单客户主体名称(企业名称)")
    @Size(max = 255, message = "工单客户主体名称(企业名称)长度不能超过255")
    private String customerSubjectName;
    /**
     * 工单客户主体类型(服务商类型 字典MENU_AFFILIATION)
     */
    @ApiModelProperty(value = "工单客户主体类型(服务商类型 字典MENU_AFFILIATION)")
    @Size(max = 255, message = "工单客户主体类型(服务商类型 字典MENU_AFFILIATION)长度不能超过255")
    private String customerSubjectType;
    /**
     * 联系人
     */
    @ApiModelProperty(value = "联系人")
    @Size(max = 255, message = "联系人长度不能超过255")
    private String contact;
    /**
     * 联系人手机号
     */
    @ApiModelProperty(value = "联系人手机号")
    @Size(max = 255, message = "联系人手机号长度不能超过255")
    private String contactMobile;
    /**
     * 展馆编码
     */
    @ApiModelProperty(value = "展馆编码")
    @Size(max = 255, message = "展馆编码长度不能超过255")
    private String spaceCode;
    /**
     * 展馆号
     */
    @ApiModelProperty(value = "展馆号")
    @Size(max = 255, message = "展馆号长度不能超过255")
    private String spaceName;
    /**
     * 展位编码
     */
    @ApiModelProperty(value = "展位编码")
    @Size(max = 255, message = "展位编码长度不能超过255")
    private String siteCode;
    /**
     * 展位号
     */
    @ApiModelProperty(value = "展位号")
    @Size(max = 255, message = "展位号长度不能超过255")
    private String siteName;
    /**
     * 接单主体(字典 MENU_AFFILIATION)
     */
    @ApiModelProperty(value = "接单主体(字典 MENU_AFFILIATION)")
    @Size(max = 255, message = "接单主体(字典 MENU_AFFILIATION)长度不能超过255")
    private String acceptSubjectType;
    /**
     * 接单公司ID(接单主体是主场，配套服务商, 则存储服务商ID；如果是场馆，则存储场馆部门id)
     */
    @ApiModelProperty(value = "接单公司ID(接单主体是主场，配套服务商, 则存储服务商ID；如果是场馆，则存储场馆部门id)")
    private Long acceptCompanyId;
    /**
     * 所属服务部门/商名称
     */
    @ApiModelProperty(value = "所属服务部门/商名称")
    @Size(max = 255, message = "所属服务部门/商名称长度不能超过255")
    private String acceptCompanyName;
    /**
     * 实付金额
     */
    @ApiModelProperty(value = "实付金额")
    private BigDecimal payAmount;
    /**
     * 支付方式 字典维护
     */
    @ApiModelProperty(value = "支付方式 字典维护")
    @Size(max = 255, message = "支付方式 字典维护长度不能超过255")
    private String payWay;
    /**
     * 付款时间
     */
    @ApiModelProperty(value = "付款时间")
    private LocalDateTime payTime;
    /**
     * 备注信息
     */
    @ApiModelProperty(value = "备注信息")
    @Size(max = 255, message = "备注信息长度不能超过255")
    private String remark;
    /**
     * 工单描述
     */
    @ApiModelProperty(value = "工单描述")
    @Size(max = 255, message = "工单描述长度不能超过255")
    private String workOrderDesc;

    /**
     * 加班单号
     */
    @ApiModelProperty(value = "加班单号")
    private String workOvertimeNumber;

    /**
     * 报修单号
     */
    @ApiModelProperty(value = "报修单号")
    private String repairReportNumber;

    /**
     * 图纸
     */
    @ApiModelProperty(value = "图纸")
    private List<WorkOrderDrawingDTO> workOrderDrawings;

    /**
     * 工单操作记录
     */
    @ApiModelProperty(value = "工单操作记录")
    private WorkOrderOperationRecordDTO workOrderOperationRecordDTO;

    /**
     * 报馆服务ID
     */
    @ApiModelProperty(value = "报馆服务ID")
    private Long reportSpaceServiceId;
}
